/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tcloudclient.fileSystemInfo;

import javax.swing.tree.DefaultMutableTreeNode;
import tcloudclient.fileSystem.FileNode;

/**
 *
 * @author Tomas
 */
public class FileSystemTreeNode extends DefaultMutableTreeNode{

    public FileSystemTreeNode(FileNode userObject) {
        super(userObject, !userObject.isLeaf());
    }
    
    @Override
    public FileNode getUserObject() {
        return (FileNode)super.getUserObject();
    }

    @Override
    public FileNode[] getUserObjectPath() {
        return (FileNode[])super.getUserObjectPath();
    }

    @Override
    public String toString() {
        return ((FileNode)userObject).getName();
    }

    
    
    
    
}
